package com.bana.fvs.app.mvp.model;

import com.bana.fvs.app.mvp.ConstantsValue;
import com.bana.fvs.app.mvp.contract.LoginContract;
import com.bana.fvs.app.mvp.contract.MainContract;
import com.bana.fvs.app.util.UserInfoUtils;
import com.wei.commonlibrary.net.OkhttpRequest;

import java.util.HashMap;

/**
 * Created by wei on 2018/2/26.
 */

public class MainModel extends MainContract.AbsMainModel {
    @Override
    public void onStart() {

    }

    @Override
    public OkhttpRequest validate(String token) {
        HashMap<String, Object> map = new HashMap<>();


        map.put("token", token);

        return okhttpRequest.url(iApiService.validate(map));
    }
}
